//
//  SegementTitleView.h
//  DanaKreditLoan
//
//  Created by ZhengChengFeng on 2024/10/20.
//

#import <UIKit/UIKit.h>
#import "ScroContentView.h"

NS_ASSUME_NONNULL_BEGIN

@class SegementTitleView;

@protocol SegmentTitleViewDelegate <NSObject>

@optional

- (void)segmentTitleView:(SegementTitleView *)segmentView selectedIndex:(NSInteger)selectedIndex lastSelectedIndex:(NSInteger)lastSelectedIndex;

@end


@interface SegementTitleView : UIView

@property (nonatomic, weak) id<SegmentTitleViewDelegate> delegate;

//@property (nonatomic, strong) UIColor *titleNormalColor;
//
//@property (nonatomic, strong) UIColor *titleSelectedColor;

@property (nonatomic, assign) NSInteger selectedIndex;

//@property (nonatomic, strong) UIFont *titleFont;
//
//@property (nonatomic, strong) UIFont *titleSelectFont;

@property (nonatomic, assign) CGFloat itemMinMargin;

@property (nonatomic, strong) UIImage *btnBackNormalImg;

@property (nonatomic, strong) UIImage *btnBackSelectImg;

@property (nonatomic, strong) NSArray<NSString *> *segmentTitles;

@end

NS_ASSUME_NONNULL_END
